package com.supermali.behavior.forward.land;

/**
 * @project runner
 * @Date 2021/3/4
 * @Auth yangrui
 **/
public class MoveRateControl {

    private double v =0;

    public MoveRateControl() {
        v = 200d/3000;
    }

    /**
     * @param direct -1(left) or 1(right)
     * */
    public double move(long delta,int direct){
        // 3秒钟 24个px
        double dv = this.v * delta*direct ;
        return dv;
    }
}
